<template>
  <div class="navbar">
    <div class="left">
      <i class="fab fa-fonticons-fi"></i>
    </div>
    <div class="center">
      <van-search v-model="value" placeholder="请输入搜索关键词" />
    </div>
    <div class="avatar" @click="$router.push('/login')">
      <img src="../../assets/img/avatar.jpg" alt="" />
    </div>
    <div class="right">
      <button>下载App</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      value: ""
    };
  },
  components: {
    
  }
};
</script>
<style lang="less" scoped>
@green: #02a774;
.navbar {
  display: flex;
  height: 44px;
  line-height: 44px;
  color: @green;
  background-color: #fff;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  text-align: center;

  .center {
    flex: 4;
    .van-search {
      padding: 5px 0;
    }
  }
  .left {
    flex: 1;
  }
  .right {
    flex: 2;
    button{
      border: none;
      outline: none;
      background-color: @green;
      color: #fff;
      height: 30px;
      padding: 0 5px;
      margin: 7px;
      line-height: 30px;
      border-radius: 10px;
      font-size: 13px;
      width: 85%;
    }
  }
  .avatar{
    flex: 1;
    img {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      padding: 7px 0;
    }
  }
}
</style>
